package com.mj.haier.calc.client;

import java.util.Collections;
import java.util.List;

import com.google.common.collect.Lists;
import com.mj.haier.calc.domain.AzEorderTitle;
import com.mj.haier.calc.domain.BdGvsItemconfig;
import com.mj.haier.calc.domain.BdSwitcher;
import com.mj.haier.calc.domain.CarsInfo;
import com.mj.haier.calc.domain.CarsTeamInfo;

import org.springframework.stereotype.Component;

@Component
public class FeignClientHystrix implements RrskxClient, FinClient {

    @Override
    public BdSwitcher getBdSwitcher(String switcherValue) {
        return new BdSwitcher()
            .switcherKey("_default")
            .switcherValue("")
            .switcherName("默认值");
    }

    @Override
    public List<CarsTeamInfo> searchCarsTeamInfosByNetpoint(String netpoint) {
        return Lists.newArrayList();
    }

    @Override
    public CarsInfo getCarsInfo(String carsId) {
        return new CarsInfo();
    }

    @Override
    public BdGvsItemconfig getBdGvsItemconfig(String sourceNameCode) {
        return new BdGvsItemconfig();
    }

    @Override
    public List<AzEorderTitle> getAllAzEorders(String switcherValue, Integer limit) {
        return Collections.<AzEorderTitle>emptyList();
    }

    @Override
    public int updateAzOrderTitleFinSettle(String tradeCode, String orderCode) {
        return 0;
    }
}
